﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WeChatParking.Core.Payment.WeixinPay
{
    /// <summary>
    /// 获取access_token时，返回的值
    /// 例如{"access_token":"ACCESS_TOKEN","expires_in":7200}
    /// </summary>
    public class WxpayTokenReturn
    {
        public string access_token { get; set; }
        public string expires_in { get; set; }

    }

    public class WxAccessTokenResult
    {
        public int errcode { get; set; }
        public string errmsg { get; set; }

        public string access_token { get; set; }
        public string expires_in { get; set; }

    }
   
    /// <summary>
    /// 获取jsapi_ticket的返回值
    /// </summary>
   public class WxPayJsapiTicket{
       public string errcode{get;set;}
       public string errmsg{get;set;}
       public string ticket{get;set;}
       public string expires_in{get;set;}
   }

   /// <summary>
   /// 获取微信用户信息的AccessToken模型
   /// </summary>
   public class WxPayUserAccessToken
   {
       public string access_token { get; set; }
       public string expires_in { get; set; }
       public string refresh_token { get; set; }
       public string openid { get; set; }
       public string scope { get; set; }
       public string unionid { get; set; }

       public int errcode { get; set; }

       public string errmsg { get; set; }
   }

}
